const defaultState={
    address:{
        // city:'全国'
    },
    userInfo:{}
}
const reducer=(state=defaultState,action)=>{
    if(action.type==='get_city'){
        const newState=JSON.parse(JSON.stringify(state))
        newState.address=action.value
        return newState
    }
    if(action.type==='change_city'){
        const newState=JSON.parse(JSON.stringify(state))
        newState.address=action.value
        return newState
    }
    return state
}
export default reducer